x86: Prevent an infinite series of traps
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 24 May 2007 09:39:28 +0000 (10:39 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 24 May 2007 09:39:28 +0000 (10:39 +0100)
commitd5ab9f9089dcf8a8a336e6dff26fae6b6d4b91fd
treed7a0549198f67e1136374036f0ea1439723d3110
parentfab51b46ae28d30db5195aaa146df2403b2cd3bc
x86: Prevent an infinite series of traps

In some cases, we can end up in a vicious cycle of fatal_trap()s
within fatal_trap()s. Panic after a certain number of attempts.

Signed-off-by: Nils Nieuwejaar <nils.nieuwejaar@sun.com>
Use a per-cpu depth variable.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/traps.c